<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<link href="<c:url value="/css/style.css"/>" rel="stylesheet">
<%--<script src="<c:url value="/js/main.js"/>"></script>--%>
<%--<img src="<c:url value="/images/logo.png"/>" alt="Logo">--%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>员工管理系统 - 管理员主页</title>
    <link rel="stylesheet" href="../../css/style.css">
</head>
<body>
<div class="container">
    <div class="sidebar">
        <h2>员工管理系统</h2>
        <div class="user-info">
            <p>欢迎, ${user.username}</p>
            <a href="login">退出登录</a>
        </div>
        <ul class="menu">
            <li><a href="emp1">员工管理</a></li>
            <li><a href="#">部门管理</a> </li>
            <li><a href="#">薪资管理</a></li>
            <li><a href="attendance">考勤管理</a></li>
            <li><a href="#">修改密码</a></li>
            <li><a href="register">注册管理员</a></li>
        </ul>
    </div>
    <div class="main-content">
        <h1>欢迎使用员工管理系统</h1>
        <div class="dashboard">
            <div class="stat-card">
                <h3>员工总数</h3>
                <p>${employeeCount}</p>
            </div>
            <div class="stat-card">
                <h3>在职员工</h3>
                <p>${activeEmployeeCount}</p>
            </div>
            <div class="stat-card">
                <h3>本月新员工</h3>
                <p>${newEmployeeCount}</p>
            </div>
        </div>
    </div>
</div>
</body>
</html>